<!DOCTYPE html>
<html>
    <head lang="en">
        <meta charset="UTF-8">
        <title></title>
        <style>
        
        </style>
        <script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"> </script>
        <script src="jquery-ui.min.js"> </script>
        <script> 
            var pb;
            var max=100;
            var current=0;

            $(document).ready(function(){
                pb=$("#pb")
                pb.progressbar({max:100});
                setInterval(changepb,100); 
           });
           function changepb(){
               current++;
               if(current>=100){
                   current=0;
               }
               pb.progressbar("option","value",current);
          }
        </script>
        <link rel="stylesheet" href="jquery-ui.min.css">
    </head>
    <body>
      <div id="pb"></div>
    </body>
</html>